<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	if(!$_RQ['fromuser']){
		$return['ischecklogin']=$this->model('member')->checklogin();
	}else{
		$return['isfromuser']=1;
	}
	$adwei=$_RQ['adwei'];
	$return['member']=model('core/member')->detail($_SESSION['uid']);
	$return['appregister']=custom_url('jy_ad/renwu.ad//adwei='.$adwei.'&fromuser='.$_SESSION['uid'],true);
	$return['qrcode']=cfc('tools')->createqrcode($return['appregister'],'320',true);
	$return['qrcode']=tomedia($return['qrcode']);
	$sharelink='jy_ad/renwu.ad//adwei='.$adwei.'&fromuser='.$_SESSION['uid'];
    $return['adwei']=$adwei;
	$return['placement_id']=$this->model('model')->get_placement_id($adwei);
	$return['sharedata']=array(
		'title'=>'视频任务',
		'desc'=>'视频任务',
		'link'=>custom_url($sharelink,true),
		'imgUrl'=>tomedia($return['pluginset']['share_image']),
	);
	set_html('title','视频任务');
	exi($return);
}